package com.prs.crm.domain.cdxh.printing;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.Cascade;

import com.prs.crm.domain.BaseEntity;

/**
 * @author LanXiaoGang
 * @E-mail:lan9liang@163.com
 * @qq:7857553326
 * @version 创建时间：2010-12-9 下午02:41:14 简单说明
 */
@Entity
@Table(name = "cdxh_PrintPrintIng")
public class PrintPrintIng extends BaseEntity {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;

	/**
	 * 打印明细
	 */
	@OneToMany(mappedBy = "printPrintIng")
	@Cascade({ org.hibernate.annotations.CascadeType.ALL,
			org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
	private Set<PrintPrintIngDetail> details;
	/**
	 * 打印编号
	 */
	private String printCodes;

	/**
	 * 机号
	 * 
	 * @param detail
	 */
	private String printMachine;
	/**
	 * 班次
	 */
	private String printClass;
	/**
	 * 时间
	 */
	private String printDate;
	/**
	 * 抽验时间1
	 */
	private String printCDateA;
	/**
	 * 抽验时间2
	 */
	private String printCDateB;
	/**
	 * 抽验时间4
	 */
	private String printCDateC;
	/**
	 * 抽验时间5
	 */
	private String printCDateD;
	/**
	 * 抽验时间5
	 */
	private String printCDateE;
	/**
	 * 抽验时间6
	 */
	private String printCDateF;
	/**
	 * 抽验时间7
	 */
	private String printCDateG;
	/**
	 * 抽验时间8
	 */
	private String printCDateH;

	/**
	 * 工作状况
	 */
	private String printWorkState;
	/**
	 * 备注
	 */
	private String printRemarks;
	/**
	 * 主管
	 */
	private String printZhuG;
	/**
	 * 技术员
	 */
	private String printJishuYuan;
	/**
	 * 填表人
	 */
	private String printTianBiao;

	public void addDetail(PrintPrintIngDetail detail) {
		if (details == null)
			details = new HashSet<PrintPrintIngDetail>();
		detail.setPrintPrintIng(this);
		details.add(detail);
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Set<PrintPrintIngDetail> getDetails() {
		return details;
	}

	public void setDetails(Set<PrintPrintIngDetail> details) {
		this.details = details;
	}

	public String getPrintMachine() {
		return printMachine;
	}

	public void setPrintMachine(String printMachine) {
		this.printMachine = printMachine;
	}

	public String getPrintClass() {
		return printClass;
	}

	public void setPrintClass(String printClass) {
		this.printClass = printClass;
	}

	public String getPrintDate() {
		return printDate;
	}

	public void setPrintDate(String printDate) {
		this.printDate = printDate;
	}

	public String getPrintCDateA() {
		return printCDateA;
	}

	public void setPrintCDateA(String printCDateA) {
		this.printCDateA = printCDateA;
	}

	public String getPrintCDateB() {
		return printCDateB;
	}

	public void setPrintCDateB(String printCDateB) {
		this.printCDateB = printCDateB;
	}

	public String getPrintCDateC() {
		return printCDateC;
	}

	public void setPrintCDateC(String printCDateC) {
		this.printCDateC = printCDateC;
	}

	public String getPrintCDateD() {
		return printCDateD;
	}

	public void setPrintCDateD(String printCDateD) {
		this.printCDateD = printCDateD;
	}

	public String getPrintCDateE() {
		return printCDateE;
	}

	public void setPrintCDateE(String printCDateE) {
		this.printCDateE = printCDateE;
	}

	public String getPrintCDateF() {
		return printCDateF;
	}

	public void setPrintCDateF(String printCDateF) {
		this.printCDateF = printCDateF;
	}

	public String getPrintCDateG() {
		return printCDateG;
	}

	public void setPrintCDateG(String printCDateG) {
		this.printCDateG = printCDateG;
	}

	public String getPrintCDateH() {
		return printCDateH;
	}

	public void setPrintCDateH(String printCDateH) {
		this.printCDateH = printCDateH;
	}

	public String getPrintWorkState() {
		return printWorkState;
	}

	public void setPrintWorkState(String printWorkState) {
		this.printWorkState = printWorkState;
	}

	public String getPrintRemarks() {
		return printRemarks;
	}

	public void setPrintRemarks(String printRemarks) {
		this.printRemarks = printRemarks;
	}

	public String getPrintZhuG() {
		return printZhuG;
	}

	public void setPrintZhuG(String printZhuG) {
		this.printZhuG = printZhuG;
	}

	public String getPrintJishuYuan() {
		return printJishuYuan;
	}

	public void setPrintJishuYuan(String printJishuYuan) {
		this.printJishuYuan = printJishuYuan;
	}

	public String getPrintTianBiao() {
		return printTianBiao;
	}

	public void setPrintTianBiao(String printTianBiao) {
		this.printTianBiao = printTianBiao;
	}

	public String getPrintCodes() {
		return printCodes;
	}

	public void setPrintCodes(String printCodes) {
		this.printCodes = printCodes;
	}

}
